home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / Prog / N-P / NIFTY / myCShell / floatingWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-12-20  |  1.7 KB  |  67 lines  |  [TEXT/KAHL]

  1. /*********************************************************
  2.  "floatingWindow.h"
  3.  
  4.  adapted from the pioneering work by:
  5.  
  6.      Don Melton & Mike Ritter [MacTutor, April, 1988]
  7.      ... and ...
  8.     Thomas Fruin             [MacTutor, December 1988]
  9.      ... and ...
  10.     Patrick Doane             [his "FLOATING WINDOWS", Version 1.3,]
  11.                              [downloaded from "America OnLine"    ]
  12.  
  13.  using Symantec's "THINK C", v 5.00
  14.  *********************************************************/
  15.  
  16.  
  17. #define    _H_floatingWindow                // #pragma once
  18.  
  19.  
  20.     
  21.  
  22. /* Additional result codes describing window
  23. ** kinds returned by the routine TGetWKind:    */
  24.  
  25. #define        systemKind            -1
  26. #define        toolKind            30000
  27.  
  28.  
  29. /* Used by TFrontWindow: */
  30. #define        anyKind                30001
  31.  
  32.  
  33. /* Miscellaneous: */
  34.  
  35. #define        inFront                (WindowPtr)-1
  36. #define        FLOAT                3004
  37. #define        postponeCalc        true
  38. #define        normalCalc            false
  39.  
  40.  
  41. // Prototypes follow:
  42.  
  43. void            TInitWindows (void);
  44. WindowPtr        TMakeNewTool (short windowID, Ptr wStorage, WindowPtr behind);
  45. void            TCloseWindow (WindowPtr theWindow);
  46. void            TSelectWindow (WindowPtr whichWindow);
  47. void            THideWindow (WindowPtr theWindow);
  48. void            TShowWindow (WindowPtr theWindow);
  49. void            THideFloats (void);
  50. void            TShowFloats (void);
  51. WindowPtr        TFrontWindow (short wantedKind);
  52. void            TDragWindow (WindowPtr theWindow, EventRecord *theEvent);
  53. short            TGetWKind (WindowPeek theWindow);
  54. void            THiliteTools (Boolean hilite);
  55. void            TSuspend (void);
  56. void            TResume (void);
  57. WindowPeek        TNextVisWindow (short wantedKind, WindowPeek thePWindow);
  58. WindowPeek        TPrevVisWindow (WindowPeek thePWindow);
  59. void            TBringForward (WindowPeek thePWindow, WindowPeek behindWindow,
  60.                                Boolean waitWithCalc);
  61. void            TSendDAsBack (WindowPeek behindWindow);
  62.  
  63.  
  64.  
  65.  
  66. /*    { end file "floatingWindow.h" }  */
  67.